package com.lk.spring.boot.sample.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lk.spring.boot.sample.mapper.user.UserInfo;
import com.lk.spring.boot.sample.mapper.user.UserInfoExtendMapper;
import com.lk.spring.boot.sample.mapper.user.UserInfoMapper;

@Service
public class UserInfoService {
 
	@Autowired
	private  UserInfoExtendMapper userInfoExtendMapper;
	@Autowired
	private UserInfoMapper userInfoMapper;
	
	/**
	 * 查询
	 * @return
	 */
	public List<UserInfo> queryAll(){
		return userInfoExtendMapper.queryAll();
	}
	
	public UserInfo getByKey(int id){
		return userInfoMapper.selectByPrimaryKey(id);
	}
}
